package org.opens.service;

import org.opens.entity.Student;

import java.util.Collection;
import java.util.List;
import java.util.Map;
import java.util.Optional;

/**
 * @Date 2020/12/30 21:20
 * @Created by 99126
 */
public interface StudentService {

    List<Student> findByCondition(Student student);

    int dynamicUpdate(Student student);

    Optional<Student> findById(int id);

    List<Student> chooseSelect(Student student);

    List<Student> findByIds(Collection<Integer> ids);

    int insertUseMap(Map<String, Object> param);

    int batchUpdate(Collection<Student> students);

    int batchUpdateFromMysql(Collection<Student> students);

    Student findByIdInc(int id);

}
